package com.zte.sys.user.dao;

import com.zte.sys.dept.model.Dept;
import com.zte.sys.position.model.Job;
import com.zte.sys.user.model.Users;
import com.zte.sys.user.model.UsersCondition;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface IUserDao {

    /**
     * 用户查询
     * @param conn
     * @return
     */
    public List<Users> queryUserListByCondition(UsersCondition conn);
    public List<Dept> queryDeptList(String deptId);

    public List<Job> queryJobList(String jobId);

    /**
     * 详情
     * @param conn
     * @return
     */
    public Users queryUserByCondition(UsersCondition conn);

    /**
     * 添加用户
     * @param users
     * @return
     */
    public int addUser(Users users);

    /**
     * 修改用户
     * @param users
     * @return
     */
    public int updateUser(Users users);

    /**
     * 撤职修改
     * @param users
     * @return
     */
    public int updateStatusId(Users users);

}
